Completed
Branch master (93a1f2)
by Daniel
01:17
created

transpiler.test.js ➔ ???   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 25
rs 8.8571
1
import chai from 'chai';
2
import {isString} from '../transpiler/strman';
3
4
describe('isString function', () => {
5
    it('should be false', () => {
6
        let fixtures = [
7
            1,
8
            false,
9
            1.2,
10
            [],
11
            {}
12
        ];
13
14
        fixtures.forEach(el => {
15
            chai.expect(isString(el)).to.equal(false);
16
        });
17
    });
18
    it('should be true', () => {
19
        let fixtures = [
20
            'string',
21
            'string'
22
        ];
23
24
        fixtures.forEach(el => {
25
            chai.expect(isString(el)).to.equal(true);
26
        });
27
    });
28
});
29